const joi = require('joi')

const id = joi.number().integer().min(1).required()
const type = joi.string().required()

//添加验证
exports.addType = {
    body:{
        type
    }
}

//删除验证
exports.deleteType = {
    body:{
        id
    }
}

//编辑验证
exports.editType = {
    body:{
        id,
        type
    }
}

